package com.example.zhunongzonghe.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("zn_delivery_address")
public class ZnDeliveryAddress implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 收货地址表
     */
    @TableId(value = "address_id", type = IdType.AUTO)
    private Integer addressId;

    /**
     * 属于哪个用户
     */
    @TableField("username")
    private String username;

    /**
     * 收货人
     */
    @TableField("consignee")
    private String consignee;

    /**
     * 电话号码
     */
    @TableField("phone")
    private String phone;

    /**
     * 收货地址
     */
    @TableField("address_delivery")
    private String addressDelivery;

    /**
     * 默认收货地址：0不是，1是
     */
    @TableField("default_address")
    private Integer defaultAddress;


}
